<template>
    <div class="exam-heaer">
      <div class="header-box">
      <div class="left-header"><el-icon><ArrowLeft /></el-icon>
      <span class="left-label">返回</span>
      </div>
      <div class="title">{{title}}</div>
    </div>
      <div class="examTitle">考试名称</div>
      <div class="exam-info">
      <div class="info-item">
        <span class="label">Test Date:</span>
        <span class="value">{{ testDate }}</span>
      </div>
      <div class="info-item">
        <span class="label">Candidate:</span>
        <span class="value">{{ candidate }}</span>
      </div>
      <div class="info-item">
        <span class="label">Exam Name:</span>
        <span class="value">{{ examName }}</span>
      </div>
      <div class="info-item">
        <span class="label">Total Score:</span>
        <span class="value">{{ totalScore }}</span>
      </div>
    </div>
    </div>
  </template>
  
  <script  setup>
  defineProps({
    testDate:{
      type:String,
    },
    title:{
      type:String,
    },
    candidate:{
      type:String,

    },
    examName:{
      type:String,

    },
    totalScore:{
      type:String
    }

  })
  </script>
  
  <style scoped lang="scss">
  .exam-info {
    padding: 20px;
    border-bottom: 1px solid #eee;
    border-top: 1px solid #eee;
  }
  .examTitle{
    font-family: PingFang SC;
font-weight: 600;
font-size: 16px;
line-height: 22.4px;
letter-spacing: 0%;
text-align: center;
margin-bottom:10px;
color:#333;
  }
  .header-box{
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 20px;
    .title{
      font-family: PingFang SC;
font-weight: 600;
font-size: 18px;
line-height: 25.2px;
letter-spacing: 0%;
color:#333;
    }
    .left-header{
      position: absolute;
      top: 50%;
      left: 0px;
      transform: translateY(-50%);
      display: flex;
      align-items: center;
      .left-label{
        font-family: PingFang SC;
font-weight: 400;
font-size: 14px;
line-height: 22px;
letter-spacing: 0px;
color:#000;
margin-left: 10px;
      }
    }
  }
  
  .info-item {
    margin-bottom: 12px;
  }
  
  .info-item:last-child {
    margin-bottom: 0;
  }
  
  .label {
    color:#333;
    margin-right: 8px;
  }
  
  .value {
    font-family: PingFang SC;
font-weight: 400;
font-size: 14px;
line-height: 19.6px;
letter-spacing: 0%;
color:#333;
  }
  </style>